<template>
  <div>
    <jy-dialog :title="title" :visible.sync="open" width="800px" append-to-body>
      <gxby-view :id="form.id"></gxby-view>
      <div slot="footer" class="dialog-footer">
        <el-button @click="cancel">关 闭</el-button>
      </div>
    </jy-dialog>
  </div>
</template>
<script>
import GxbyView from './gxby-view.vue';

export default {
  name: 'gxby-add-or-update',
  components: {
    GxbyView
  },
  data () {
    return {
      open: false,
      title: '工序报验资料',
      qsOptions: [],
      form: {},
    };
  },
  created () {
  },
  mounted () {
  },
  methods: {
    init (id) {
      this.open = true;
      this.form.id = id;
    },
    // 取消按钮
    cancel () {
      this.open = false;
    },
  },
};
</script>
